package srcTA;

import java.util.Comparator;

public class CompanyIdBasedBidComparer implements Comparator<Bid>
{
    @Override
    public int compare(Bid bid1, Bid bid2) 
    {
        if (bid1.Company() == bid2.Company())
        {
            return 0;
        }

        if (bid1.Company() < bid2.Company())
        {
            return -1;
        }
        
        return +1;
    }
}
